package com.gt.contant;

public class CommonAjaxResult implements AjaxResult {


    protected int code;
    protected String msg;

    public CommonAjaxResult(int code, String message) {
        this.code = code;
        msg = message;
    }

    public CommonAjaxResult(AjaxCode code) {
        this.code = code.getCode();
        msg = code.getMessage();
    }

    public CommonAjaxResult(AjaxCode code, String message) {
        this.code = code.getCode();
        msg = message;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

}
